<?php
include_once 'module/controls.php';
include_once 'model/support/process.php';
$support = new support();
$c = new controls();
$fillOne = $support->FillOne($_GET);
?>
<div id="content">
    <div class="content_block">
        <h2 class="jquery_tab_title"><?php echo $phrase["support_update"] ?></h2>
        <form method="post" action="<?= $url["home"] ?>/menu/support-process" enctype="multipart/form-data">
            <p>
                <?php echo $c->get_textHidden("id", $fillOne["support_id"]) ?>
                <?php echo $c->get_label($phrase["support_name"]) ?>
                <?php echo $c->get_text("support_name", $fillOne["support_name"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>

            <p>
                <?php echo $c->get_label($phrase["yahoo_name"]) ?>
                <?php echo $c->get_text("yahoo_name", $fillOne["yahoo_name"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>

            <p>
                <?php echo $c->get_label($phrase["yahoo_id"]) ?>
                <?php echo $c->get_text("yahoo_id", $fillOne["yahoo_id"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>

            <p>
                <?php echo $c->get_label($phrase["skype_name"]) ?>
                <?php echo $c->get_text("skype_name", $fillOne["skype_name"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>

            <p>
                <?php echo $c->get_label($phrase["skype_id"]) ?>
                <?php echo $c->get_text("skype_id" , $fillOne["skype_id"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>

            <p>
                <?php echo $c->get_label($phrase["phone"]) ?>
                <?php echo $c->get_text("phone" , $fillOne["phone"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>
            
            <p>
                <?php echo $c->get_label($phrase["email"]) ?>
                <?php echo $c->get_text("email" , $fillOne["email"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>
            
            <p>
                <?php echo $c->get_label($phrase["support_level"]) ?>
                <select name="support_level" id="support_level" >
                    <option value="0" <?php if($fillOne["level"] == 0) { ?>selected='selected'<?php } ?>>Luật sư</option>
                    <option value="1" <?php if($fillOne["level"] == 1) { ?>selected='selected'<?php } ?>>Chuyên viên</option>
                </select>
            </p>
            
            <p>
                <?php echo $c->get_button("update", $phrase["update"]) ?>
            </p>
        </form>
    </div>
</div>